﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;
using PTTK19.DB;

namespace PTTK19.BUS
{
    public class BUS_PhieuXuatKho
    {
        private int _MaPXK;

        public int MaPXK
        {
            get { return _MaPXK; }
            set { _MaPXK = value; }
        }
        private int _MaPYC;

        public int MaPYC
        {
            get { return _MaPYC; }
            set { _MaPYC = value; }
        }
        private DateTime _NgayKham;

        public DateTime NgayKham
        {
            get { return _NgayKham; }
            set { _NgayKham = value; }
        }
        private DateTime _NgayGiao;

        public DateTime NgayGiao
        {
            get { return _NgayGiao; }
            set { _NgayGiao = value; }
        }
        private int _TinhTrang;

        public int TinhTrang
        {
            get { return _TinhTrang; }
            set { _TinhTrang = value; }
        }
        private int _MaSP;

        public int MaSP
        {
            get { return _MaSP; }
            set { _MaSP = value; }
        }
        private int _SoLuong;

        public int SoLuong
        {
            get { return _SoLuong; }
            set { _SoLuong = value; }
        }
           public static int LayMaSoPXK()
        {
            return DB_PhieuXuatKho.LayMaSoPXK() + 1;
        }
           public static int ThemPhieuXuat(BUS_PhieuXuatKho PXK, ArrayList arrSanPham, DataTable dtSP, ArrayList arrSoLuong)
        {
            return DB_PhieuXuatKho.ThemPhieuXuat(PXK, arrSanPham, dtSP,arrSoLuong);
        }
    }
}
